package com.project.myxima.interfaces;

import com.project.myxima.base.IBasePresenter;
import com.ximalaya.ting.android.opensdk.player.service.XmPlayListControl;

public interface IPlayerPresenter extends IBasePresenter<IPlayerCallback> {

    void play();

    void pause();

    void stop();

    void playNext();

    void playPre();


    /**
     * 切换播放模式
     *
     * @param playMode
     */
    void switchPlayMode(XmPlayListControl.PlayMode playMode);

    /**
     * 获取播放列表
     */
    void getPlayList();

    /**
     * 根据节目的位置进行播放
     *
     * @param index
     */
    void playByIndex(int index);

    //是否正在播放
    boolean isPlaying();


    void seekTo(int currentProgress);

    /**
     * reverse PlayList in PlayList_PopupWindow
     */
    void reversePlayList();

    //是否有播放列表
    boolean hasPlayList();

    void playByAlbumID(long albumID);
}
